import 'package:flutter/material.dart';

class ModuleBaseProvider extends ChangeNotifier {
  int father = 0;
  int child = 0;
  setModuleIndex({int? fi, int? ci}) {
    father = fi ?? 0;
    child = ci ?? 0;
    notifyListeners();
  }
}

class TikTokModuleProvider extends ModuleBaseProvider {
  static final TikTokModuleProvider _instance = TikTokModuleProvider._();

  factory TikTokModuleProvider() => _instance;

  TikTokModuleProvider._() {
    father = 1;
  }
}

class HomeModuleProvider extends ModuleBaseProvider {
  static final HomeModuleProvider _instance = HomeModuleProvider._();

  factory HomeModuleProvider() => _instance;

  HomeModuleProvider._();
}

class CartoonModuleProvider extends ModuleBaseProvider {
  static final CartoonModuleProvider _instance = CartoonModuleProvider._();

  factory CartoonModuleProvider() => _instance;

  CartoonModuleProvider._();
}

class CommunityModuleProvider extends ModuleBaseProvider {
  static final CommunityModuleProvider _instance = CommunityModuleProvider._();

  factory CommunityModuleProvider() => _instance;

  CommunityModuleProvider._();
}

class DarkWebModuleProvider extends ModuleBaseProvider {
  static final DarkWebModuleProvider _instance = DarkWebModuleProvider._();

  factory DarkWebModuleProvider() => _instance;

  DarkWebModuleProvider._();
}
